//
//  ArticleReturnJson.swift
//  amicool
//
//  Created by 方君竹 on 2017/6/15.
//  Copyright © 2017年 fjz. All rights reserved.
//



import UIKit

/*
 "id":" ",
 "name":"哈哈哈哈哈哈哈",
 "thumb":null,
 "thumbsize":null,
 "description":"简介啊什么的就是这样的没错 ",
 "ressrcid":"2",
 "ressrcname":"转载",
 "attach":null,
 "attachsize":null,
 "technoid":"4",
 "technoname":"移动开发",
 "kcdm":"drandroid",
 "kcmc":"ios应用开发",
 "sectionid":"10",
 "sectionname":"     ",
 "specialid":"36",
 "specialname":"ios什么什么的",
 "author":"大天才小可爱",
 "content":"sfkadsfksadhvjbssdjbkhds
 */

class ArticleReturnJson: NSObject{
    var name:String?  //课件标题
    var thumb:String?      //课件图标
    var desc:String?       //课件描述
    var kcmc:String?  //课程名称
    var author:String?    //作者
    var content:String?  //课件地址
    var update_time:String?  //更新时间
    
    class func articelListModelWithDict(dict:NSDictionary?)->ArticleReturnJson?{
        if(dict == nil){
            return nil
        }
        
        let model:ArticleReturnJson? = ArticleReturnJson()
        if model != nil{
            model?.name = dict!["name"] as? String
            model?.thumb = dict!["thumb"] as? String
            model?.desc = dict!["description"] as? String
            model?.kcmc = dict!["kcmc"] as? String
            model?.author = dict!["author"] as? String
            model?.content = dict!["content"] as? String
            model?.update_time = dict!["update_time"] as? String
            
            
        }
        
        return model
        
    }
    
    
    
    
    
    
}
